// @description 特殊处理
// @author yurui
// @createDate 2023.1.09
// @version v1.0.0
import { defHttp } from '/@/utils/http/axios';
import { ApiCommon } from '../common'

const { BILLING_ADMIN_API } = ApiCommon;

enum Api {
    //获取所有特殊处理查询优惠项目下拉
    PREFERENTIAL_CONFIG = '/preferential-config/all',
    //获取追收账单前的数据
    RECOVERY_DATA = '/record/get/recovery/data/',
    //创建追收账单
    RECOVERY_CREATE = '/record/recovery/create'
}
/**
 * @description: 请求的API地址
 */

//获取所有特殊处理查询优惠项目下拉
export const preferentialConfigApi = () => defHttp.get({ url: BILLING_ADMIN_API + Api.PREFERENTIAL_CONFIG });
//获取追收账单前的数据
export const recoveryDataApi = (params:object) => defHttp.get({ url: BILLING_ADMIN_API + Api.RECOVERY_DATA + params.userId });
//创建追收账单
export const recoveryCreateApi = (params:object) => defHttp.post({ url: BILLING_ADMIN_API + Api.RECOVERY_CREATE,params });










